package com.aaa.controller;/**
 * @className Pie
 * @Description TODO
 * @Author wyy
 * @Data 2021/1/30 12:01
 * @Version 1.0
 */

import com.aaa.common.result.Result;
import com.aaa.service.PieService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 *@className Pie
 *@Description 饼形图的Controller层
 *@Author wyy
 *@Data 2021/1/30 12:01
 *@Version 1.0
 */
@RestController
@RequestMapping("/pie")
public class PieController {

    @Autowired
    private PieService pieService;

    /**
     *@ 描述 :根据公司名称计算建筑面积的比例(饼形图)
     */
    @GetMapping("/buildCompany")
    public Result BuildCompany(){ return   pieService.peiBuildCompany(); }
    /**
     *@ 描述 :根据公司名称计算土地面积的比例(饼形图)
     */
    @GetMapping("/soilCompany")
    public Result SoilCompany(){return pieService.pieSoilCompany();}
    /**
     *@ 描述 :根据年份对资产进行统计
     */
    @GetMapping("/yearsCount")
    public Result yearsCount(){return pieService.yearsCount();}

}
